package com.erp.programmer.dto;

import com.erp.programmer.annotation.ValidateEntity;

import java.math.BigDecimal;

/**
 * @Author: Takagi3
 * @QQ: 870089046
 * @VX: HandsomeMY_
 * @Date: create in 2021/5/24 19:16
 */
public class SaleOrderDetailDto {
    //"销售订单流水号"
    private String  id;

    //"销售订单编号"
    private String saleOrderNumber;

    @ValidateEntity(required=true,requiredMaxLength=true,requiredMinLength=true,maxLength=19,minLength=19,errorRequiredMsg="商品ID不能为空！",errorMaxLengthMsg="商品ID只能为19位！",errorMinLengthMsg="商品ID只能为19位！")
    //"商品ID"
    private String productId;

    //"数量"
    @ValidateEntity(required=true,requiredMinValue=true,requiredMaxLength=true,requiredMinLength=true,minValue = 0,maxLength=19,minLength=1,errorRequiredMsg="商品数量不能为空！",errorMinValueMsg = "商品数量必须大于0",errorMaxLengthMsg="商品数量长度不能大于19位！",errorMinLengthMsg="商品数量长度不能小于1位！")
    private String number;

    private BigDecimal totalPrice;

    //搜索内容
    private String searchContent;
    //搜索类型
    private String searchType;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSaleOrderNumber() {
        return saleOrderNumber;
    }

    public void setSaleOrderNumber(String saleOrderNumber) {
        this.saleOrderNumber = saleOrderNumber;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getSearchContent() {
        return searchContent;
    }

    public void setSearchContent(String searchContent) {
        this.searchContent = searchContent;
    }

    public String getSearchType() {
        return searchType;
    }

    public void setSearchType(String searchType) {
        this.searchType = searchType;
    }
}
